/*
 * Copyright (c) 2014-2020 杭州派迩信息技术有限公司 All Rights Reserved.
 * ProjectName: pi-flowable-project
 * ModuleName: pi-actuator-service
 * FileName: PiActuatorServiceInstanceMapper.java
 * Author: kai.li
 * Date: 2021/08/31 18:16:31
 * Version: 1.0
 * LastModified: 2021/08/31 18:16:31
 */

package com.pisolution.actuator.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pisolution.actuator.service.model.PiActuatorServiceInstance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pisolution.actuator.service.model.ServiceInstanceReq;
import org.apache.ibatis.annotations.Param;

/**
 * @className: PiActuatorServiceInstanceMapper
 * @description: Mapper接口
 * @author: kai.li
 * @date: 2021/08/31 18:16:31
 * @since: 1.0
 */

public interface PiActuatorServiceInstanceMapper extends BaseMapper<PiActuatorServiceInstance> {

    /**
     * @title 根据唯一键查询注册实例记录
     * @description
     * @author admin
     * @updateTime 2021/9/2 13:49
     * @throws
     */
    PiActuatorServiceInstance selectByUniqKey(@Param("ip") String ip, @Param("port") String port, @Param("context") String context);

    /**
     * @title  分页查询
     * @description
     * @author admin
     * @updateTime 2021/9/15 10:42
     * @throws
     */
    IPage<PiActuatorServiceInstance> selectPageList(Page<Object> objectPage, @Param("serviceInstanceReq") ServiceInstanceReq serviceInstanceReq);
}
